#ifndef MFG_ZCL_H
#define MFG_ZCL_H

#include "ZComDef.h"
#include "OSAL.h"
#include "zcl.h"

#include "zcl_general.h"



#define GEN_BASIC_ZCL_VERSION(zcl_version)  {ZCL_CLUSTER_ID_GEN_BASIC,{ATTRID_BASIC_ZCL_VERSION,ZCL_DATATYPE_UINT8,ACCESS_CONTROL_READ,(void *)&zcl_version}} /* ZCL version */
#define GEN_BASIC_APP_VERSION(app_version)  {ZCL_CLUSTER_ID_GEN_BASIC,{ATTRID_BASIC_APP_VERSION,ZCL_DATATYPE_UINT8,ACCESS_CONTROL_READ,(void *)&app_version}} /* APP version */ 
#define GEN_BASIC_HW_VERSION(hw_version)  { ZCL_CLUSTER_ID_GEN_BASIC, {ATTRID_BASIC_HW_VERSION,ZCL_DATATYPE_UINT8,ACCESS_CONTROL_READ,(void *)&zclSalesBox_HWRevision }} /* Hw verison */
  { ZCL_CLUSTER_ID_GEN_BASIC, { ATTRID_BASIC_MANUFACTURER_NAME, ZCL_DATATYPE_CHAR_STR, ACCESS_CONTROL_READ, (void *)zclSalesBox_ManufacturerName}} /* manufacturer name*/
  { ZCL_CLUSTER_ID_GEN_BASIC, { ATTRID_BASIC_MODEL_ID, ZCL_DATATYPE_CHAR_STR, ACCESS_CONTROL_READ, (void *)zclSalesBox_ModelId } }, /* model id */
  { ZCL_CLUSTER_ID_GEN_BASIC, { ATTRID_BASIC_DATE_CODE, ZCL_DATATYPE_CHAR_STR, ACCESS_CONTROL_READ, (void *)zclSalesBox_DateCode } }, /* data code */
  { ZCL_CLUSTER_ID_GEN_BASIC, { ATTRID_BASIC_POWER_SOURCE, ZCL_DATATYPE_ENUM8, ACCESS_CONTROL_READ, (void *)&zclSalesBox_PowerSource } }, /* power source */ \
  { ZCL_CLUSTER_ID_GEN_BASIC, { ATTRID_BASIC_LOCATION_DESC, ZCL_DATATYPE_CHAR_STR, (ACCESS_CONTROL_READ|ACCESS_CONTROL_WRITE), (void *)zclSalesBox_LocationDescription } }, /* Location Description */ \
  { ZCL_CLUSTER_ID_GEN_BASIC, { ATTRID_BASIC_PHYSICAL_ENV, ZCL_DATATYPE_ENUM8, (ACCESS_CONTROL_READ|ACCESS_CONTROL_WRITE), (void *)&zclSalesBox_PhysicalEnvironment } }, /* Physical Environment */ \
  { ZCL_CLUSTER_ID_GEN_BASIC, { ATTRID_BASIC_DEVICE_ENABLED, ZCL_DATATYPE_BOOLEAN, (ACCESS_CONTROL_READ|ACCESS_CONTROL_WRITE), (void *)&zclSalesBox_DeviceEnable } }, /* Device Enable */ \
  { ZCL_CLUSTER_ID_GEN_BASIC, { ATTRID_CLUSTER_REVISION, ZCL_DATATYPE_UINT16, ACCESS_CONTROL_READ, (void *)&zclSalesBox_clusterRevision_all } }, /* end */







#endif